.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    padding: 16px;
}

.search-card {
    background: #cad6e3;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.search-card .title {
    font-size: 16px;
    font-weight: 600;
    color: #1a73e8;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-card .snippet {
    font-size: 14px;
    color: #5f6368;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.search-card .source {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.search-card .source-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-card .source-text {
    font-size: 13px;
    color: #5f6368;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.search-card .link {
    font-size: 13px;
    color: #808080;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.search-card .actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.search-card .action-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 6px;
    color: #5f6368;
    font-size: 13px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-card .action-button:hover {
    background: #f1f3f4;
    color: #1a73e8;
}

.search-card a {
    text-decoration: none;
    color: inherit;
}

.search-card a:hover {
    text-decoration: underline;
}

/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
    .search-card {
        background: #2a2a2a;
        border-color: #404040;
    }

    .search-card:hover {
        background: #2d2d2d;
    }

    .search-card .title {
        color: #4b9eff;
    }

    .search-card .snippet {
        color: #b0b0b0;
    }

    .search-card .source-icon {
        background: #404040;
    }

    .search-card .source-text {
        color: #909090;
    }

    .search-card .link {
        color: #909090;
    }

    .search-card .actions {
        border-color: #404040;
    }

    .search-card .action-button {
        color: #909090;
    }

    .search-card .action-button:hover {
        background: #404040;
        color: #4b9eff;
    }
}
